package com.spc.car.data.service.org;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spc.car.data.entity.org.OrgEmployee;
import com.spc.car.data.domain.org.po.GetEmployeeListPO;
import com.spc.car.data.domain.org.po.SaveOrgEmployeePO;

/**
 * <p>
 * 组织雇员表 服务类
 * </p>
 *
 * @author 
 * @since 2020-03-30
 */
public interface OrgEmployeeService extends IService<OrgEmployee> {

    /**
     * 保存或修改一条雇员信息
     * @param saveOrgEmployeePO
     * @return
     */
    int saveEmployeeInformation(SaveOrgEmployeePO saveOrgEmployeePO);

    /**
     * 判断组织里一个雇员是不是唯一的
     * @param saveOrgEmployeePO
     * @return
     */
    boolean uniqueEmployee(SaveOrgEmployeePO saveOrgEmployeePO);

    /**
     * 查询雇员信息列表（带分页）
     * @param getEmployeeListPO
     * @return
     */
    Page<OrgEmployee> getEmployeeList(GetEmployeeListPO getEmployeeListPO);
}
